package com.simon.jkxj.model;

public class EncyclopediaNews {
    private String title;
    private String content;
    private String source;
    private String time;
    private String imageUrl;

    public EncyclopediaNews(String title, String content, String source, String time, String imageUrl) {
        this.title = title;
        this.content = content;
        this.source = source;
        this.time = time;
        this.imageUrl = imageUrl;
    }

    // 提供一些模拟数据用于测试
    public static EncyclopediaNews[] getMockData() {
        return new EncyclopediaNews[] {
            new EncyclopediaNews(
                "中医推拿：舒筋活络自然疗法",
                "推拿是中国传统医学的外治疗法之一，具有舒筋活络、理筋正骨、活血化瘀的功效...",
                "中医养生小贴士",
                "2小时前",
                null
            ),
            new EncyclopediaNews(
                "养生茶饮：四季养生的智慧选择",
                "根据季节变化调整茶饮，既能顺应自然节律，又能调理身体机能，是养生保健的重要方式...",
                "健康生活",
                "3小时前",
                null
            ),
            new EncyclopediaNews(
                "艾灸疗法：温通经络的古老智慧",
                "艾灸是利用燃烧的艾条产生的热力和药力，通过穴位刺激来达到防病治病效果的传统疗法...",
                "中医养生小贴士",
                "5小时前",
                null
            ),
            new EncyclopediaNews(
                "中医四诊：望闻问切的诊断体系",
                "望闻问切是中医诊断疾病的四种基本方法，包含了中医独特的整体观念和辨证思想...",
                "中医基础知识",
                "昨天",
                null
            ),
            new EncyclopediaNews(
                "春季养生：顺应自然的健康之道",
                "春季养生重在'生发'，调养肝胆，注意起居有常，适当运动，饮食宜温补阳气...",
                "季节养生",
                "昨天",
                null
            ),
            new EncyclopediaNews(
                "针灸原理：经络气血的调和之术",
                "针灸通过刺激人体特定穴位，调节经络气血，平衡阴阳，从而达到防病治病的目的...",
                "中医理论",
                "前天",
                null
            ),
            new EncyclopediaNews(
                "中药炮制：提高药效的传统技艺",
                "炮制是中药特有的制药技术，通过各种加工方法改变药物性能，增强疗效，降低毒副作用...",
                "中药学基础",
                "3天前",
                null
            ),
            new EncyclopediaNews(
                "食疗养生：药食同源的健康理念",
                "中医食疗将食物与药物结合，根据体质和季节选择适宜食材，既能滋养身体，又能防治疾病...",
                "饮食养生",
                "4天前",
                null
            )
        };
    }

    // Getters and Setters
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
} 